-- GENERATED SPELL FOR [Worg Master Kruush] --


function spell0_19442(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_19442', 597, 1)
end

function spell1_19442(pUnit, Event) --@Fear the Worgs,Self--
pUnit:FullCastSpellOnTarget(34076,pUnit)
pUnit:RegisterEvent('Sorts_19442', 633, 1)
end

function spell2_19442(pUnit, Event) --@Hemorrhage,n/a--
pUnit:FullCastSpellOnTarget(30478,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19442', 10000, 1)
end

function Sorts_19442(pUnit, Event)
local choix_sorts_19442 = math.random(0, 2)
if choix_sorts_19442 == 0 then
pUnit:RegisterEvent('spell0_19442', 1, 1)
end
if choix_sorts_19442 == 1 then
pUnit:RegisterEvent('spell1_19442', 1, 1)
end
if choix_sorts_19442 == 2 then
pUnit:RegisterEvent('spell2_19442', 1, 1)
end
end

function mob19442_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19442', math.random(1500, 3000), 1)
end

function mob19442_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19442_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19442_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19442, 1, 'mob19442_Action')
RegisterUnitEvent(19442, 2, 'mob19442_Leave')
RegisterUnitEvent(19442, 3, 'mob19442_Kill')
RegisterUnitEvent(19442, 4, 'mob19442_Die')
